package net.oschina.app.pages;

import android.view.View;

import net.oschina.app.testcases.favorites.SoloWrap;

/**
 * Created by Administrator on 2017/7/3.
 */

public class PageNavigation {

    private SoloWrap solo;
    private View newsTab,tweetTab,addTab,exploreTab,myTab;

    public PageNavigation(SoloWrap solo){
        this.solo = solo ;
    }

    public void initViews(){
        newsTab = solo.getView("net.oschina.app:id/nav_item_news");
        tweetTab = solo.getView("net.oschina.app:id/nav_item_tweet");
        addTab = solo.getView("net.oschina.app:id/nav_item_tweet_pub");
        exploreTab = solo.getView("net.oschina.app:id/nav_item_explore");
        myTab = solo.getView("net.oschina.app:id/nav_item_me");
    }

    public void clickNewsTab(){
        solo.clickOnView(newsTab);
    }

    public void clickTweetTab(){
        solo.clickOnView(tweetTab);
    }

    public void clickAddTab(){
        solo.clickOnView(addTab);
    }

    public void clickExploreTab(){
        solo.clickOnView(exploreTab);
    }

    public void clickMyTab(){
        solo.clickOnView(myTab);
    }


}
